#ifndef CODIGODELTA_H_
#define CODIGODELTA_H_

#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <string>
#include <math.h>
#include <cstring>
#include <stdint.h>
#include <unistd.h>
#include "../utils/Functions.h"
#include "../utils/Constantes.h"
#include <fstream>

using std::vector;
using std::string;
using std::cout;
using std::endl;
using std::ifstream;
using std::ios;
using std::ofstream;


class CodigoDelta{

public:

	string getCodigoUnario(unsigned int);

	string getCodigoGamma(unsigned int);

	string getCodigoBinario(unsigned int, unsigned int);

	string getCodigoDelta(unsigned int);

	string getCharArrayComprimido(vector <Data>*);

	unsigned int getNumeroFromCodigoUnario(string, unsigned int*);

	vector <Data>* getDataFromFile(ifstream*);

	unsigned int getNumeroFromCodigoDelta(unsigned char*, unsigned int*, ifstream*);

	unsigned int getNumeroFromCodigoGamma(unsigned char*, unsigned int*, ifstream* );

	unsigned int getDecimalFromBinario(string);

	void read(unsigned int*, ifstream*, unsigned char*);
};



#endif /* FUNCTIONS_H_ */
